//
//  HearCell.m
//  Travel
//
//  Created by lanou3g on 15/12/8.
//  Copyright © 2015年 涂晓雨. All rights reserved.
//

#import "HearCell.h"

@implementation HearCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self set];
    }
    return self;
}


- (void)set{

    self.imageCover = [[UIImageView alloc]initWithFrame:CGRectMake(15, 10, 60, 60)];
    self.imageCover.backgroundColor = [UIColor cyanColor];
    self.imageCover.layer.masksToBounds = YES;
    self.imageCover.layer.cornerRadius = 30;
    [self.contentView addSubview:self.imageCover];
    
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(90 ,10 , self.contentView.frame.size.width, 15)];
    self.titleLabel.text = @"1111111111";
    self.titleLabel.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.titleLabel];
    
    self.summaryLabel = [[UILabel alloc]initWithFrame:CGRectMake(90, 25,self.contentView.frame.size.width - 45 ,50)];
    self.summaryLabel.numberOfLines = 0;
    self.summaryLabel.font = [UIFont systemFontOfSize:12];
//    NSArray *arr1 = [UIFont familyNames];
//    NSLog(@"%@",arr1);
    self.summaryLabel.alpha = 0.5;
    self.summaryLabel.text = @"2222222222";
    [self.contentView addSubview:self.summaryLabel];
    
}






- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
